package com.ruoyi.audit.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章审核对象 article_audit
 * 
 * @author ruoyi
 * @date 2024-11-02
 */
public class ArticleAudit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审核表id，主键 */
    private Long id;

    /** 文章id */
    @Excel(name = "文章id")
    private Long articleId;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 审核通过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核通过时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date passTime;

    /** 审核驳回原因 */
    @Excel(name = "审核驳回原因")
    private String reason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setAuditStatus(String auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus() 
    {
        return auditStatus;
    }
    public void setPassTime(Date passTime) 
    {
        this.passTime = passTime;
    }

    public Date getPassTime() 
    {
        return passTime;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleId", getArticleId())
            .append("auditStatus", getAuditStatus())
            .append("passTime", getPassTime())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
